package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.entity.DataEntity;


/**
 * 病房
 * 
 * @ClassName: CdcRoomEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:07
 */
@TableName("t_cdc_ct_room") 
public class CdcRoomEntity extends DataEntity<CdcRoomEntity> {
	private static final long serialVersionUID = 1L;
	
	//索引码
	private String xcode;	
	//代码
	private String code;	
	//描述
	private String description;	
	//所属病区
	private Long locationId;
    @TableField(exist = false)
    private CdcLocationEntity location;
	//房间类型
	private Long busRoomTypeId;	
    public CdcLocationEntity getLocation() {
        return location;
    }
    public void setLocation(CdcLocationEntity location) {
        this.location = location;
    }
    public CdcDictionaryEntity getBusRoomType() {
        return busRoomType;
    }
    public void setBusRoomType(CdcDictionaryEntity busRoomType) {
        this.busRoomType = busRoomType;
    }
    @TableField(exist = false)
    private CdcDictionaryEntity busRoomType;	
	//业务数据类型
	private Long dataId;	
	//是否有效
	private Integer isActive;	
    
    @TableField(exist = false)
    private CdcDataEntity data;	
	public CdcDataEntity getData() {
        return data;
    }
    public void setData(CdcDataEntity data) {
        this.data = data;
    }
	/**
	 * 设置：索引码
	 */
	public void setXcode(String xcode) {
		this.xcode = xcode;
	}
	/**
	 * 获取：索引码
	 */
	public String getXcode() {
		return xcode;
	}
	/**
	 * 设置：代码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：代码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：描述
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * 获取：描述
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * 设置：所属病区
	 */
	public void setLocationId(Long locationId) {
		this.locationId = locationId;
	}
	/**
	 * 获取：所属病区
	 */
	public Long getLocationId() {
		return locationId;
	}
	/**
	 * 设置：房间类型
	 */
	public void setBusRoomTypeId(Long busRoomTypeId) {
		this.busRoomTypeId = busRoomTypeId;
	}
	/**
	 * 获取：房间类型
	 */
	public Long getBusRoomTypeId() {
		return busRoomTypeId;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
}
